/**
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
define(["ojs/ojcore","jquery","ojs/ojcomponentcore","ojs/ojdvt-base","ojs/internal-deps/dvt/DvtTimeAxis"],function(a,g,b,c,d){a.Ra("oj.ojTimeAxis",g.oj.dvtBaseComponent,{widgetEventPrefix:"oj",Dg:function(a,b,c){return d.TimeAxis.newInstance(a,b,c)},Jf:function(){var a=this._super();a.push("oj-timeaxis");return a},Ej:function(){var a=this._super();a["oj-timeaxis-label"]={path:"labelStyle",property:"CSS_TEXT_PROPERTIES"};return a},Fj:function(){return["optionChange"]},Ti:function(){var a=this.options.translations,
b=this._super();b["DvtUtilBundle.TIMEAXIS"]=a.componentName;return b},Tm:function(){null==this.options._resources&&(this.options._resources={});var b=this.options._resources,c=a.za.dj(a.Hi.CONVERTER_TYPE_DATETIME),d=c.createConverter({hour:"numeric",minute:"2-digit",second:"2-digit"}),g=c.createConverter({hour:"numeric",minute:"2-digit"}),l=c.createConverter({hour:"numeric"}),m=c.createConverter({month:"numeric",day:"2-digit"}),r=c.createConverter({month:"long"}),t=c.createConverter({year:"numeric"}),
s=c.createConverter({month:"short"}),q=c.createConverter({year:"2-digit"}),r={seconds:d,minutes:g,hours:l,days:m,weeks:m,months:r,quarters:r,years:t},d={seconds:d,minutes:g,hours:l,days:m,weeks:m,months:s,quarters:s,years:q};b.converterFactory=c;b.converter=r;b.converterVert=d;b.axisClass="oj-timeaxis-container";b.axisLabelClass="oj-timeaxis-label";b.axisSeparatorClass="oj-timeaxis-separator";b.borderTopVisible=!1;b.borderRightVisible=!1;b.borderBottomVisible=!1;b.borderLeftVisible=!1;b.firstDayOfWeek=
a.$a.uF()}});a.Components.Xa("ojTimeAxis","dvtBaseComponent",{properties:{converter:{type:"object"},end:{type:"number"},scale:{type:"string"},start:{type:"number"}},methods:{},extension:{_widgetName:"ojTimeAxis"}});a.Components.register("oj-time-axis",a.Components.getMetadata("ojTimeAxis"))});